<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>后台管理系统</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes,target-densitydpi=device-dpi">
    <meta name="renderer" content="webkit">
    <!-- Add to homescreen for Chrome on Android -->
    <meta name="mobile-web-app-capable" content="yes">
    <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

    <!-- Add to homescreen for Safari on iOS -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="__PUBLIC__/assets/i/46.png">
    <link rel="apple-touch-icon-precomposed" href="__PUBLIC__/assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="__PUBLIC__/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="__PUBLIC__/assets/css/admin.css">
    <style>
        table{
            width: 99%;
            height: 200px;
            text-align: center;
        }
    </style>
</head>
<body>

<input type="button" onclick="preview(1)" value="打印" style="margin-left: 20%"/>
<!--startprint1-->
<div id="print">
    <div style="text-align: center;">
    <img src="__PUBLIC__/img/1042.png" style="width: 300px;"/>
    </div>
<h2>姓名：{$name}</h2>
<hr/>
<if condition="$lt_arr.type eq 1">
    <!--衬衫-->
    <table border="1">
        <tr>
            <td>衣长</td>
            <td style="font-size: large;"><strong>{$lt_arr.length}</strong></td>
            <td>胸围</td>
            <td style="font-size: large;"><strong>{$lt_arr.chest}</strong></td></td>
        </tr>
        <tr>
            <td>中腰</td>
            <td style="font-size: large;"><strong>{$lt_arr.mid_waist}</strong></td>
            <td>下摆</td>
            <td style="font-size: large;"><strong>{$lt_arr.lower_hem}</strong></td>
        </tr>
        <tr>
            <td>肩宽</td>
            <td style="font-size: large;"><strong>{$lt_arr.shoulder}</strong></td>
            <td>袖长</td>
            <td style="font-size: large;"><strong>{$lt_arr.sleeve_long}</strong></td>
        </tr>
        <tr>
            <td>袖肥</td>
            <td style="font-size: large;"><strong>{$lt_arr.sleeve_width}</strong></td>
            <td>领围</td>
            <td style="font-size: large;"><strong>{$lt_arr.neckline}</strong></td>
        </tr>
        <tr>
            <td>特殊情况</td>
            <td>{$lt_arr.descr}</td>
        </tr>
    </table>
<!--end-->
    <elseif condition="$lt_arr.type eq 2"/>
    <!--西服-->
    <table border="1">
        <tr>
            <td>衣长</td>
            <td style="font-size: large;"><strong>{$lt_arr.length}</strong></td>
            <td>胸围</td>
            <td style="font-size: large;"><strong>{$lt_arr.chest}</strong></td>
        </tr>
        <tr>
            <td>中腰</td>
            <td style="font-size: large;"><strong>{$lt_arr.mid_waist}</strong></td>
            <td>下摆</td>
            <td style="font-size: large;"><strong>{$lt_arr.lower_hem}</strong></td>
        </tr>
        <tr>
            <td>肩宽</td>
            <td style="font-size: large;"><strong>{$lt_arr.shoulder}</strong></td>
            <td>袖长</td>
            <td style="font-size: large;"><strong>{$lt_arr.sleeve_long}</strong></td>
        </tr>
        <tr>
            <td>袖肥</td>
            <td style="font-size: large;"><strong>{$lt_arr.sleeve_width}</strong></td>
            <td>领围</td>
            <td style="font-size: large;"><strong>{$lt_arr.neckline}</strong></td>
        </tr>
        <tr>
            <td>裤长</td>
            <td style="font-size: large;"><strong>{$lt_arr.outside_len}</strong></td>
            <td>腰围</td>
            <td style="font-size: large;"><strong>{$lt_arr.waistline}</strong></td>
        </tr>
        <tr>
            <td>臀围</td>
            <td style="font-size: large;"><strong>{$lt_arr.hipline}</strong></td>
            <td>通裆</td>
            <td style="font-size: large;"><strong>{$lt_arr.tong_fork}</strong></td>
        </tr>
        <tr>
            <td>横裆</td>
            <td style="font-size: large;"><strong>{$lt_arr.barre}</strong></td>
            <td>脚口</td>
            <td style="font-size: large;"><strong>{$lt_arr.leg_open}</strong></td>
        </tr>
        <tr>
            <td>特殊情况</td>
            <td>{$lt_arr.descr}</td>
        </tr>
    </table>
    <!--end-->
</if>
        <hr/>
<if condition="$order_arr.pro_id eq 1">
    <h3>衬衫</h3>
    <table border="1">
        <tr>
            <td>订单编号</td>
            <td>{$order_arr.ordernum2}</td>
            <td>衬衫数量</td>
            <td>{$order_arr.num}</td>
        </tr>
        <tr>
            <td>衬衫面料</td>
            <td>{$order_arr.color}</td>
            <td>领型</td>
            <td>{$order_arr.collar_type}</td>
        </tr>
        <tr>
            <td>袖型</td>
            <td>{$order_arr.sleeve_type}</td>
            <td>门襟</td>
            <td>{$order_arr.front_fly}</td>
        </tr>
        <tr>
            <td>类型</td>
            <td>{$order_arr.xf_type}</td>
            <td>性别</td>
            <td>{$order_arr.sex}</td>
        </tr>
        <tr>
            <td>做工</td>
            <td>{$order_arr.zuo}</td>
            <td>备注</td>
            <td>{$order_arr.descr2}</td>
        </tr>
    </table>
    <elseif condition="$order_arr.pro_id eq 2"/>
    <h3>西服</h3>
    <table border="1">
        <tr>
            <td>订单编号</td>
            <td>{$order_arr.ordernum2}</td>
            <td>西服数量</td>
            <td>{$order_arr.xf_num}</td>
        </tr>
        <tr>
            <td>西服面料</td>
            <td>{$order_arr.xf_color}</td>
            <td>驳头</td>
            <td>{$order_arr.lapel}</td>
        </tr>
        <tr>
            <td>驳头宽</td>
            <td>{$order_arr.lapel_width}</td>
            <td>开叉</td>
            <td>{$order_arr.jag}</td>
        </tr>
        <tr>
            <td>袖口叉</td>
            <td>{$order_arr.sleeve_fork}</td>
            <td>口袋</td>
            <td>{$order_arr.xf_pocket}</td>
        </tr>
        <tr>
            <td>纽扣</td>
            <td>{$order_arr.fastener}</td>
            <td>类型</td>
            <td>{$order_arr.xf_type}</td>
        </tr>
        <tr>
            <td>性别</td>
            <td>{$order_arr.sex}</td>
            <td>做工</td>
            <td>{$order_arr.zuo}</td>
        </tr>
        <tr>
            <td>备注</td>
            <td>{$order_arr.descr2}</td>
        </tr>
    </table>
</if>
    <hr/>
    <span>日期：_______年________月________日</span>
</div>
<!--endprint1-->
<script>
    function preview(oper)
    {
        if (oper < 10)
        {
            bdhtml=window.document.body.innerHTML;//获取当前页的html代码
            sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域
            eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域
            prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18); //从开始代码向后取html

            prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//从结束代码向前取html
            window.document.body.innerHTML=prnhtml;
            window.print();
            window.document.body.innerHTML=bdhtml;
        } else {
            window.print();
        }
    }
</script>
<include file="public/footer"/>